<%@page import="classes.AccountManager"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Remove User</title>
</head>
<body>

<%
	String username = request.getParameter("user");
	username = username.substring(0, username.indexOf(' '));
	
	AccountManager accManager = (AccountManager)application.getAttribute(AccountManager.ACCOUNTMANAGER);
	accManager.deleteAccount(username);
	
	out.println("Account: " + username + " was successfully deleted");
	
	out.println("<a href=\"adminLogin.jsp\">go to home page</a>");
%>



</body>
</html>